import request from '@/utils/request'

//获取最新版本
export function getUpgrade() {
  return request({
    url: '/seller/upgrade?_t=' + new Date().getTime(),
    method: 'get'
  })
}

//最新进货订单（待付款）
export function latestPurchaseOrders() {
  return request({
    url: '/seller/home/latestPurchaseOrders',
    method: 'get'
  })
}

//最新出货订单（待付款）
export function latestShippingOrders() {
  return request({
    url: '/seller/home/latestShippingOrders',
    method: 'get'
  })
}

export function getProfitStat() {
	return request({
	  url: '/seller/home/getProfitStat',
	  method: 'get'
	})
}

//钱包地址
export function walletList() {
  return request({
    url: '/seller/wallet/list',
    method: 'get'
  })
}

//进货开关
export function purchaseSwitch(value) {
  return request({
    url: `/seller/purchaseSwitch/${value}`,
    method: 'get'
  })
}

//出货开关
export function cashierSwitch(value) {
  return request({
    url: `/seller/cashierSwitch/${value}`,
    method: 'get'
  })
}